package hashMap;

/**
 * Description:
 * Author:    Dane
 * CreateTime:2024/8/23-下午2:19
 * Since  :   1.0
 * Version:   1.0
 */
//创建员工类
class Emp {
    int id ; // id
    String name; // 姓名
    String sex ; // 性别

    Emp next; //指向下一节点

    //构造器
    public Emp(int id, String name, String sex) {
        this.id = id;
        this.name = name;
        this.sex = sex;
    }

    @Override
    public String toString() {
        return "Emp{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", sex='" + sex + '\'' +
                '}';
    }
}